package com.yuyou.tas.admin.api;

import com.yuyou.tas.admin.service.ICommMessPushJobService;
import com.yuyou.tas.service.api.admin.service.CommMessPushAPI;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CommMessPushImpl implements CommMessPushAPI {

	@Autowired
	private ICommMessPushJobService commMessPushJobService;


	@Override
	public ResBoolSimpleInfo<String> addJob(@RequestParam("f_id")Long f_id,
											@RequestParam("type")Integer type,
											@RequestParam("status")Integer status,
											@RequestParam("tag")String tag) {
		return commMessPushJobService.addJob(f_id,type,status,tag);
	}

	@Override
	public ResBoolSimpleInfo<String> updateJobStatusByFId(@RequestParam("f_id")Long f_id ,
														  @RequestParam("status")Integer status,
														  @RequestParam("remark")String remark) {
		return commMessPushJobService.updateJobStatusByFId(f_id , status , remark);
	}
}
